{extend name="public/base"/}
{block name="body"}
	{:ad("casesad")}
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="banner-text text-center">
                        <h1>{$cate['title']}</h1>
                        <ul class="kal-breadcumb">
                            <li><a href="/">首页</a></li>
                            {volist name="cateTree" id="item"}
                            <li><a href="{:url('index/cases/lists?model=cases',array('id'=>$item['id']))}">{$item['title']}</a></li>
                            {/volist}
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    
    <div class="portfolio-main-content mt90 mb70">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="gallery-filter text-center">
                        <ul>
                            <li><a href="#!" data-filter="*">ALL</a></li>
                            {volist name="cCate" id="item"}
                            {if $i>1}
                            <li><a href="#!" data-filter=".p-{$item['id']}">{$item['title']}</a></li>
                            {/if}
                            {/volist}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="gallery-grid">
                
                	{volist name="list" id="item"}
                   	<div class="grid-item p-{$item['category_id']}">
                        <div class="work-item">
                        	<div class="image">
                            	<a href="{:url('index/cases/detail?model=cases',array('id'=>$item['id']))}"><img src="{:get_cover($item['cover_id'],'path')}" alt=""></a>
                        	</div>
	                        <div class="text">
	                            <h4><a href="{:url('index/cases/detail?model=cases',array('id'=>$item['id']))}">{$item['title']}</a></h4>
	                        </div>
						</div>
					</div>
                   	{/volist}
                
				</div>
            </div>
            {if $page}
            <div class="row">
                <div class="col-md-12">
                    <div class="load-more text-center mt10 pdb30">
                        <div class="page pad20" align="center">
                        {$page}
						</div>	
                    </div>
                </div>
            </div>
            {/if}
        </div>
    </div>

{/block}